# Maintainer: Simon Rupf <simon@rupf.net>
pkgname=libthreadar
pkgver=1.2.1
pkgrel=0
pkgdesc="a C++ library that provides several classes to manipulate threads"
url="http://libthreadar.sourceforge.net/"
arch="all"
license="LGPL-3.0-or-later"
subpackages="$pkgname-dev"
source="https://downloads.sourceforge.net/libthreadar/libthreadar-$pkgver.tar.gz
	alpine_strerror_r.patch"

build() {
	./configure --prefix=/usr --enable-static=no
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="52b2df3ef58b72ec3d504594528c09d9d4345321bc8dde2cfe3badc577eff5d4bbdbfc08d4c8685e47df1ce3d13ea2867f267a2c70b4e66d21f7d05810644f65  libthreadar-1.2.1.tar.gz
f741bb9d0b16456061148f365a52bc06767aad13f870126e975a6ba598b33494b6e486c948a94591d05d5955dfac190a4f88cac5377ba9f45adf73976f6017a2  alpine_strerror_r.patch"
